package com.foruo.learn.designmode.facade;

/**
 * 商品外观类
 * @author GaoYuan
 */
public class GoodsFacade {

    private Goods dress;
    private Goods jeans;
    private Goods shoes;

    public GoodsFacade(){
        dress = new Dress();
        jeans = new Jeans();
        shoes = new Shoes();
    }

    /** 对外提供的方法 */

    public void buyDress(){
        dress.buyGoods();
    }
    public void buyJeans(){
        jeans.buyGoods();
    }
    public void buyShoes(){
        shoes.buyGoods();
    }
}
